﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Automation.Protocols.Model
{
    public class TestStep
    {
        private string _id;
        private string _testcase;
        private string _keyword;
        private string _parameters;
        private string _output;
        private string _comment;
      
        public string ID
        {
            get { return _id; }
            set
            {
                _id = value;
            }
        }

        public string Comment
        {
            get { return _comment; }
            set
            {
                _comment = value;
            }
        }

        public string TestCase
        {
            get { return _testcase; }
            set
            {
                _testcase = value;
            }
        }

        public string Keyword
        {
            get { return _keyword; }
            set
            {
                _keyword = value;
            }
        }

        public string Parameters
        {
            get { return _parameters; }
            set
            {
                _parameters = value;
            }
        }

        public string Output
        {
            get { return _output; }
            set
            {
                _output = value;
            }
        }

        public bool isValid()
        {
            if (_id == null || _testcase == null || _keyword == null)
                return false;
            if (_id.Equals("") || _testcase.Equals("") || _keyword.Equals(""))
                return false;
            if (_output == null)
                _output = "";
            if (_parameters == null)
                _parameters = "";
            if (_comment == null)
                _comment = "";
            return true;
        }
    }
}
